﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MainPage.master" AutoEventWireup="true" CodeFile="StockOutsManage.aspx.cs" Inherits="Manage_StockOutsManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/StockOutsManage.js"></script>
<script type="text/javascript" src="/Manage/Public/SelectGoods.js"></script>
<script language="javascript">
    ModelOfStockOut =<%=JSONHelper.ObjectToJson<StockOutsInfo>(new StockOutsInfo()) %>
    ModelOfLine = <%=JSONHelper.ObjectToJson<StockLineInfo>(new StockLineInfo()) %>;
    SelectOptionOfStores ='<%=SelectOptionOfStores %>';
    SelectOptionOfStatus = '<%=SelectOptionOfStatus %>';
</script>


<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td align="center"><img src="/Manage/Images/sousuo.gif" />出库单号：
      <input name="txtStockOutSNOfSearch" type="text" id="txtStockOutSNOfSearch" size="12" class="border6" value="<%=q.StockOutSN %>" />
      库房：
      <select name="ddlStoreOfSearch" id="ddlStoreOfSearch">
        <option value="">--不限--</option>
		<%=SelectOptionOfStores%>
      </select>
出货日期：
      <input name="txtStartDate" type="text" id="txtStartDate"    size="12" maxlength="12" readonly="readonly"
                        onfocus="new WdatePicker({el:this})"  class=" Wdate" style="cursor: hand"  value="<%=q.StartDate %>" />
      -
      <input name="txtEndDate" type="text" id="txtEndDate"  size="12" maxlength="12" readonly="readonly"
                        onfocus="new WdatePicker({el:this})"  class=" Wdate" style="cursor: hand" value="<%=q.EndDate %>" />

      <input name="btnSearch" type="button" id="btnSearch" value="搜 索" class="btn1" onclick="GoToSearch();" />
      [<a href="StockOutsManage.aspx" class="red">查看全部</a>]
      [<a href="javascript:Add();" class="red bold">添加出库单</a>] </td>
  </tr>
</table>
<br />
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center"  >
  <tr class="TableHeadRow">
    <td colspan="10" align="left" class="HeadTitle">&gt;&gt;出库管理</td>
    </tr>
  <tr class="TableHeadRow">
    <td width="80" align="center">出库单号</td>
    <td width="80" align="center">出库日期</td>
    <td width="80" align="center">出库数量</td>
    <td width="80" align="center">出库员</td>
    <td align="center">库房</td>
    <td width="80" align="center">收货人</td>
    <td align="center">收货人地址</td>
    <td width="80" align="center">出库状态</td>
    <td align="center">备注</td>
    <td width="220" align="center">管理 [<a href="javascript:Add();" class="red">添加出库单</a>] </td>
  </tr>

  <%
      if (list != null)
      {
          for (int i = 0; i < list.Count; ++i)
          { 
              StockOutsInfo d = list[i];
  %>
  <tr>
    <td align="center"><%=d.OutsInfo.StockOutID %></td>
    <td align="center"><%=d.OutsInfo.OutDate.ToString("yyyy-MM-dd") %></td>
    <td align="center">0</td>
    <td align="center"><%=d.OutsInfo.OuterName %></td>
    <td align="center" ><%=d.StoreName %></td>
    <td align="center" ><%=d.OutsInfo.Receiver %></td>
    <td align="center"><%=d.OutsInfo.ReceiverAddress %></td>
    <td align="center"><%=d.OutsInfo.Status %></td>
    <td align="center"><%=d.OutsInfo.Remark %></td>
    <td align="center">[<a href="PrintStockOut.aspx?StockOutID=<%=d.OutsInfo.StockOutID %>" class="green" target=_blank>查看打印出库单</a>] &nbsp; [<a href="javascript:Edit(<%=d.OutsInfo.StockOutID %>);">编辑</a>] 
     &nbsp; [<a href="javascript:Delete(<%=d.OutsInfo.StockOutID %>);" class="red">删除</a>]</td>
  </tr>
  <%} %>
 <tr>
    <td colspan="10" align="center" > <span class="page" >
         <%=Utility.GetPageLine(Utility.GetWebPageUrlNoCurPage(), q.CurPage, q.PageSize,10, q.TotalCount)%>    
        </span></td>
    </tr>
    <%}
      else
      { %>
  <tr>
    <td colspan="10" align="center" class="red">[ 未找到任何出货单信息！]</td>
    </tr>
    <%} %>
</table>
</asp:Content>

